<?php
/**
 * User: Paulo Fournier
 * Date: 17-08-2013
 * Type: class
 * Event class used to set the event properties
 */

class Event {

    public $eid;        //int NULL
    public $alarm;      //int NULL
    public $idShape;    //int NULL
    public $idImage;    //int NULL
    public $imageName;  //String NULL
    private $fileData;  //BIN DATA NULL

    /***
     * Construct function to initialize the object
     * @param $attributes All attributes of the user
     */
    public function __construct($attributes){

        //save all values on the object root
        foreach($attributes as $key => $value){
            //set key/value
            $this->{$key} = $value;
        }
    }

}